header
<cfenv> (fenv.h)
Floating-point environment
This header declares a set of functions and macros to access the floating-point environment, along with specific types.
The floating-point environment maintains a series of status flags and specific control modes. Specific about the contents of the floating-point environment depend on the implementation, but the status flags generally include the floating-point exceptions and their associated information, and the control modes include at least the rounding direction.
Functions
Floating-point exceptions
- feclearexcept
- Clear floating-point exceptions (function)
- feraiseexcept
- Raise floating-point exception (function)
- fegetexceptflag
- Get floating-point exception flags (function)
- fesetexceptflag
- Set floating-point exception flags (function)
Rounding direction
- fegetround
- Get rounding direction mode (function)
- fesetround
- Set rounding direction mode (function)
Entire environment
- fegetenv
- Get floating-point environment (function)
- fesetenv
- Set floating-point environment (function)
- feholdexcept
- Hold floating-point exceptions (function)
- feupdateenv
- Update floating-point environment (function)
Other
- fetestexcept
- Test for floating-point exceptions (function)
Types
- fenv_t
- Floating-point environment type (type)
- fexcept_t
- Floating-point exceptions type (type)
Pragmas
- FENV_ACCESS
- Access to Floating-point environment (pragma)